package me.acomma.groot.domain.role;

import lombok.Getter;
import lombok.Setter;
import me.acomma.groot.infrastructure.domain.ValueObject;

import java.util.Objects;

@Getter
@Setter
public class RoleId implements ValueObject {
    private static final long serialVersionUID = 7839959950480027101L;

    private Long id;

    public RoleId() {
    }

    public RoleId(Long id) {
        this.id = id;
    }

    public static RoleId of(Long id) {
        return Objects.isNull(id) ? null : new RoleId(id);
    }
}
